﻿#ifndef PORTSTATEMONITOR_H
#define PORTSTATEMONITOR_H

#include <QObject>
#include <QQueue>

class ModbusRtuController;
class Modbus_WriteCmd;

class PortStateMonitor : public QObject
{
    Q_OBJECT
public:
    explicit PortStateMonitor(QObject *parent = nullptr);
    ~PortStateMonitor();

    void RunTask();
    void openDoor(int);
signals:
    void sig_portMessageProcess(QVector<bool>);
public slots:
    void slot_PortStateMonitorInit();
private:
    ModbusRtuController *pPortController {nullptr};

    QQueue<Modbus_WriteCmd> que_Cmd;
};

#endif // PORTSTATEMONITOR_H
